package com.qiangzhi.service.impl;

import com.qiangzhi.context.BaseContext;
import com.qiangzhi.mapper.TeacherInfoMapper;
import com.qiangzhi.service.TeacherInfoService;
import com.qiangzhi.pojo.vo.TeacherVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherInfoServiceImpl implements TeacherInfoService {

    @Autowired
    private TeacherInfoMapper teacherInfoMapper;

    /**
     * 根据jwt解析出的id查询学生信息
     *
     * @return
     */
    public TeacherVO getById() {
        return teacherInfoMapper.getById(BaseContext.getCurrentId());
    }

}
